//
//  GHSNavigationController.m
//  penzer
//
//  Created by 还带大道 on 2018/11/14.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "GHSNavigationController.h"

@interface GHSNavigationController ()

@end

@implementation GHSNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    //初始化一些属性
    UINavigationBar *navBar = [UINavigationBar appearance];
//    UIImage *image = [UIImage imageNamed:@"icon_ghs_navBG"];
//    [navBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
  
    navBar.translucent = NO;
    //设置导航条颜色
    navBar.barTintColor = RZ_COLOR(60, 34, 95);
    // 设置返回按钮的颜色
    navBar.tintColor = [UIColor whiteColor];
    //设置返回按钮图片
    navBar.backIndicatorTransitionMaskImage = [UIImage imageNamed:@"icon_back"];
    
    //设置标题颜色及大小
    NSMutableDictionary *attrs = [NSMutableDictionary dictionary];
    attrs[NSForegroundColorAttributeName] = [UIColor whiteColor];
    attrs[NSFontAttributeName] = [UIFont systemFontOfSize:18];
    [navBar setTitleTextAttributes:attrs];
}


@end
